package main

import (
	"github.com/gin-gonic/gin"
	"goods/api"
	"goods/config"
	"goods/inits"
)

func main() {
	config.Viper()
	router := gin.Default()
	inits.InitMysql()

	api.Goods(router)

	router.Run() // 监听并在 0.0.0.0:8080 上启动服务
}
